package com.kc.data.common.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.kc.data.common.domain.order.dto.BizOrderStatisticsDTO;
import com.kc.data.common.domain.order.entity.BizGoodsOrder;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface BizGoodsOrderMapper extends BaseMapper<BizGoodsOrder> {
    /**
     * 历史日期统计
     * @param currDate
     * @return
     */
    //,Integer platformId,Integer type
     BizOrderStatisticsDTO getOrderHistoryStatistics(@Param("currDate") String currDate, @Param("endTime") String endTime, @Param("platformId") Integer platformId, @Param("type") Integer type);

    /**
     * 列表
     * @param bizGoodsOrder
     * @return
     */
     List<BizGoodsOrder> getOrderList(BizGoodsOrder bizGoodsOrder);

    /**
     *获取已完成订单金额
     * @param merchId
     * @param type
     * @param status
     * @return
     */
    Double getFinishOrderMoney(@Param("merchId") Integer merchId,@Param("type") Integer type,@Param("status") Integer status);
}
